<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%--      <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/itest/css/apiManager/apiCrontab.css"/> --%>
	<link type="text/css" href="<%=request.getContextPath()%>/itest/exui/bootstrap/font-awesome/css/font-awesome.min.css" rel="stylesheet">
	<link type="text/css" href="<%=request.getContextPath()%>/itest/exui/bootstrap/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
	<link type="text/css" href="<%=request.getContextPath()%>/itest/exui/bootstrap/transfer/transfer.css" rel="stylesheet">
	<script type="text/javascript" src="<%=request.getContextPath()%>/itest/exui/bootstrap/bootstrap-table/bootstrap-table.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/itest/exui/bootstrap/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/itest/exui/bootstrap/transfer/transfer.js"></script>
    
    
    <style>
    .panel-tool {
    	background: #fff;
	}
	</style>
	<!-- 新增/修改模态窗 -->
	<!-- <div id="addOrEditWindown" title="" class="exui-window" data-options="
		modal:true,
		width: 800,
		footer:'#bugAddOrEditFoot',
		minimizable:false,
		maximizable:false,
		closed:true"> -->
		<form id="editForm" method="post">
			<table class="form-table" style="margin: auto;">
			<tbody style="width: 100%;display:inline-table;">
				<tr class="hidden">
					<td>
						<input id="cronId" type="hidden" name="dto.apiCrontab.cronId"/>
						<input type="hidden" name="dto.apiCrontab.createTime"/>
						<input type="hidden" name="dto.apiCrontab.creatorId"/>
						<input type="hidden" name="dto.apiCrontab.curStatus"/>
						<input type="hidden" name="dto.apiCrontab.lastExecResult"/>
						<input type="hidden" name="dto.apiCrontab.lastExecTime"/>
						<input type="hidden" name="dto.apiCrontab.updateTime"/>
						<input type="hidden" name="dto.apiCrontab.updateUserId"/>
					</td>
				</tr>
				<tr >
					<td class="left_td"><sup>*</sup>任务名称：</td>
					<td class="">
						<input id="cronName" name="dto.apiCrontab.cronName" class="exui-textbox" data-options="required:true" style="width:200px;">
					</td>
					<td class="right_td" ><sup>*</sup>任务描述：</td>
					<td class="">
						<input id="description" name="dto.apiCrontab.description" class="exui-textbox" data-options="required:true" style="width:200px;">
					</td>
				</tr>
				<tr >
					<td class="left_td"><sup>*</sup>时间表达式：</td>
					<td class="" colspan="3">
						<input id="cron" name="dto.apiCrontab.cron" class="exui-textbox" data-options="required:true" style="width: 100%;">
					</td>
				</tr>
				<tr >
					<td class="left_td"><sup>*</sup>类型：</td>
					<td >
						<input id="cronType" class="exui-combobox" name="dto.apiCrontab.cronType" data-options="
			    			validateOnCreate:false,
			    			required:true,
			    			editable:false,
			    			valueField:'id',
			    			textField:'text',
			    			prompt:'-定时任务类型-',
			    			data: [{id: '1',text: '测试场景任务'},{id: '2',text: '用例包任务'}]" style="width:200px;"/>
					</td>
					<td class="right_td"><sup>*</sup>传输参数：</td>
					<td >
						<input id="params" name="dto.apiCrontab.params" class="exui-textbox" data-options="required:false" style="width: 200px;">
					</td>
				</tr>
				<tr>
		    		<td class="left_td"><sup>*</sup>开始日期：</td>
		    		<td>
		    			<input class="exui-datebox startTime" data-options="required:true,editable:false,validateOnCreate:false,prompt:'-请选择-'" name="dto.apiCrontab.startTime" style="width:200px"/>
		    		</td>
		    		<td class="right_td"><sup>*</sup>结束日期：</td>
		    		<td>
		    			<input class="exui-datebox endTime" data-options="required:true,editable:false,validateOnCreate:false,prompt:'-请选择-'" name="dto.apiCrontab.endTime" style="width:200px"/>
		    		</td>
		    	</tr>
		    	<tr >
					<td class="left_td"><sup>*</sup>测试场景:</td>
					<td class="" colspan="5">
						<input id="sceneIds" name="dto.sceneIds"  type="hidden">
						<input id="sceneId" class="exui-textbox" data-options="required:true,readonly:true,prompt:'请选择测试场景'" style="width: 100%;">
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	<!-- </div> -->
	<div id=editFoot align="right" >
		<div id="operaDiv" class="" style="padding:5px;">
			<a id="submit" class="exui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="submitForm()">保存</a>
			<a id="cancleBnt" class="exui-linkbutton bntcss" data-options="btnCls:'default',size:'xs'" onclick="closeWin()">取消</a>
		</div>
	</div>
	
	<!-- 选择测试场景对话框 -->
	<div id="chooseScene" title="" class="exui-window" data-options="
			modal:true,
			title:'选择测试场景',
			width: 880,
			draggable:true,
			collapsible:false,
			minimizable:false,
			maximizable:false,
			closed:true">
			<div class="modal-body" style="padding:15px 20px;max-height: 440px;overflow-y: auto;">
			  	 <div id="transferContainer" class="row" style="height: 400px;width: 800px;margin: auto;"></div>
			</div>
			<div id=chooseSceneFoot align="right" >
				<div id="" class="" style="padding:5px;">
					<a  class="exui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="submitScene()">确定</a>
					<a class="exui-linkbutton bntcss" data-options="btnCls:'default',size:'xs'" onclick="cancelScene()">取消</a>
				</div>
			</div>
	</div>
	<script src="<%=request.getContextPath()%>/itest/js/apiManager/apiCrontab/edit.js" type="text/javascript" charset="utf-8"></script>
